package com.marvels.financial.loan.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.marvels.financial.loan.dto.McfeReconciliyChannelDataDTO;

public interface McfeReconciliyChannelDataDao {
    int deleteByPrimaryKey(Long id);

    int insert(McfeReconciliyChannelDataDTO record);

    int insertSelective(McfeReconciliyChannelDataDTO record);

    McfeReconciliyChannelDataDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McfeReconciliyChannelDataDTO record);

    int updateByPrimaryKey(McfeReconciliyChannelDataDTO record);
    
    
    /**
     * 批量插入数据
     * @param list
     * @return
     */
    int insertChannelDataBatch(List<Map<String, Object>> list);
    
    
    
    /**
     * 批量插入数据
     * @param list
     * @return
     */
    int insertReconciliyChannelBatch(List<McfeReconciliyChannelDataDTO> list);
    
    
    /**
     * 根据记录id查询渠道方记录
     * @param recordId
     * @return
     */
    public List<McfeReconciliyChannelDataDTO> selectByRecordId(@Param(value="recordId") Integer recordId);
    
    
    
    /**
     * 根据批次号更新为失效状态
     * @param batchId
     * @return
     */
    public int updateByBatchId(@Param(value="batchId") String batchId);
    
}